import request from "@/utils/request";

/**
 * 地区
 * @returns {*}
 */
export function regionsList(params) {
  return request({
    url: "/systemj/region/regionsList",
    method: "get",
    params: params,
  });
}

/**
 * 添加基本信息
 * @param data
 * @returns {*}
 */
export function addList(data) {
  return request({
    url: "/league/competition/add/competition/baseInformation",
    method: "post",
    data: data,
  });
}

/**
 * 添加修改组委会信息
 * @param member
 * @returns {*}
 */
export function editCommittee(data) {
  return request({
    url: `/league/competition/edit/competition/committee`,
    method: "put",
    data,
  });
}

/**
 * 赛事基础设置
 * @param data
 * @returns {*}
 */
export function competitionSet(data) {
  return request({
    url: `/league/competition/edit/competition/baseSetting`,
    method: "put",
    data: data,
  });
}

/**
 * 赛事报名信息
 * @param data
 * @returns {*}
 */
export function customCompetition(data) {
  return request({
    url: "/league/competition/edit/competition/participantsInfo",
    method: "put",
    data: data,
  });
}

/**
 * 查看费用信息
 * @param data
 * @returns {*}
 */
export function getInsuranceList(params) {
  return request({
    url: "/league/expenseConfig/getFeeConfig",
    method: "get",
    params,
  });
}

/**
 * 编辑费用
 * @param data
 * @returns {*}
 */
export function addCost(data) {
  return request({
    url: "/league/expenseConfig/addCptFeeConfig",
    method: "post",
    data,
  });
}

/**
 * 编辑费用
 * @param data
 * @returns {*}
 */
export function updateCost(data) {
  return request({
    url: "/league/expenseConfig/editFeeConfig",
    method: "put",
    data,
  });
}

/**
 * 编辑回显数据
 * @param data
 * @returns {*}
 */
export function editApi(params) {
  return request({
    url: "/league/competition/PCDetail",
    method: "get",
    params,
  });
}

/**
 * 修改赛事基本信息
 * @param data
 * @returns {*}
 */
export function updateApi(data) {
  return request({
    url: "/league/competition/editBaseInfo",
    method: "put",
    data,
  });
}

/**
 * 联赛详情
 * @param data
 * @returns {*}
 */
export function leagueParticulars(params) {
  return request({
    url: "/league/competition/leagueCpts",
    method: "get",
    params,
  });
}
